@layout("/common/_container.html"){
<div class="ibox float-e-margins">
	<div class="ibox-content">
		 <form id="userForm">
		<div class="form-horizontal" id="userInfoForm">
		
			<input type="hidden" id="id" name="id" value="${user.id}">
            <input type="hidden" id="type" name="type" value="update">
			<div class="row">
				<div class="col-sm-6 b-r">
					<#input id="loginName" name="用户名" underline="true" value="${user.loginName}" remote="reloginName" />

                    <#input id="officeName" name="部门" underline="true" readonly="readonly" hidden="officeId"
								hiddenValue="${user.officeId}" value="${officeName}"
								clickFun="UserInfoDlg.showDeptSelectTree(); return false;"
								style="background-color: #ffffff !important;"/>
								

					<#input id="no" name="工号" underline="true" value="${user.no}"   remote="reno" />

					<#input id="phone" name="电话" underline="true" value="${user.phone}"/>
				</div>
				<div class="col-sm-6">
					<div id="driverInfoContent">
						<#input id="name" name="姓名" underline="true" value="${user.name}"  remote="rename" />

                        <#select id="useable" name="是否冻结"  underline="true" value="${user.useable}">
						<option value="0" 
						@if(user.useable=="0"){
						selected
						@}
						>是</option>
						<option value="1"
						@if(user.useable=="1"){
						selected
						@}
						 >否</option>
					   </#select>

						<#input id="email" name="邮箱" type="email"  underline="true" value="${user.email}"  remote="remail" />
						
						<#input id="remarks" name="备注" underline="true" value="${user.remarks}" />
					</div>
				</div>
			</div>

			<!-- 这是部门选择的下拉框 -->
			<div id="menuContent" class="menuContent"
				style="display: none; position: absolute; z-index: 200;">
				<ul id="treeDemo" class="ztree tree-box" style="width: 249px !important;"></ul>
			</div>

			<div class="row btn-group-m-t">
				<div class="col-sm-10">
					<#button btnCss="info" name="提交" id="ensure" icon="fa-check" clickFun="UserInfoDlg.editSubmit()"/>
					<#button btnCss="danger" name="取消" id="cancel" icon="fa-eraser" clickFun="UserInfoDlg.close()"/>
				</div>
			</div>
		</div>
      </form>

	</div>
</div>
<script src="/modular/system/user/user_info.js"></script>
@}
